//
//  CycleCollectionCell.m
//  22--HomeWork QQ音乐界面
//
//  Created by 冀永金 on 16/8/14.
//  Copyright © 2016年 冀永金. All rights reserved.
//

#import "CycleCollectionCell.h"
#import "MVModel.h"
#import "UIImageView+WebCache.h"
@interface CycleCollectionCell ()
@property (nonatomic, strong) UIImageView *image;
@end
@implementation CycleCollectionCell
- (instancetype)initWithFrame:(CGRect)frame {
   self =  [super initWithFrame:frame];
    if (self) {
        self.image = [[UIImageView alloc]init];
        [self.contentView addSubview:_image];
    }
    return self;
    
}
- (void)layoutSubviews {
    [super layoutSubviews];
    self.image.frame = self.bounds;
}
- (void)setModel:(MVModel *)model {
    _model = model;
    [self.image sd_setImageWithURL:[NSURL URLWithString:model.picurl] placeholderImage:[UIImage new]];
}
@end
